<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>    
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>   

  <c:forEach items="${logearnList}" var="c">
   <c:if test="${c.state == 1}">	
       <c:if test="${'ios'==os}">
		 <li class="clearfix" onclick="GetToken(${c.unSettlement_id})">
       </c:if>
       <c:if test="${'wechat'==os ||'web'==os}">
		 <li class="clearfix" onclick="GetToken('${unSettlementOne_url}','${c.unSettlement_id}')">
       </c:if>
  	   <c:if test="${'android'==os}">
       	 <li class="clearfix" onclick="android.startUrl('交易明细','${unSettlementOne_url}','unSettlement_id->${c.unSettlement_id}')">
       </c:if>
          <p class="leftArea">
              <span class="black">${c.award_name}</span><br>
              <span class="gray">${c.create_time}</span>
          </p>
          <p class="rightArea">${c.free_cash}</p>
      </li>
    </c:if>
    <c:if test="${c.state == 3}">	  
      <li class="clearfix color" onclick="GetToken(${c.unSettlement_id})">
          <p class="leftArea">
              <span>${c.award_name}&nbsp;(已取消)</span><br>
              <fmt:parseDate value=" ${c.create_time}" var="date" pattern="yyyy-MM-dd HH:mm:ss"/>  
			  <span><fmt:formatDate value="${date}" pattern="yyyy-MM-dd HH:mm" /></span>
          </p>
          <p class="rightArea">${c.free_cash}</p>
      </li>
    </c:if>	       
  </c:forEach>  